<?php
namespace Admin\Controller;
use Admin\Controller\AdminController;
use Think\Controller;
use Think\Exception;

class IndexController extends AdminController {
    public function index(){
        $this->display();
    }

    public function logout() {
        if(!empty($_SESSION)) {
            session_unset();
            session_destroy();
            $this->display('Index/login');
        }
    }
}